 {include file="admin/categories/tool_bar.tpl" arr_page=$arr_page}
<div class="info {$msg.type}">{$msg.show}</div>
<table border="0" width="100%" class="tbl-admin">
	<tr>
		<th class="head-tbl" width="30"><input type="checkbox" name="chkAll"
			onclick="chkAll();" value="" id="chkAll" /></th>
		<th class="head-tbl">Tiêu đề</th>
		<th class="head-tbl" width="100">Ngày tạo</th>
		<th class="head-tbl" width="100">Trạng thái</th>
		<th class="head-tbl" width="50">Xóa</th>
		<th class="head-tbl" width="50">ID</th>
	</tr>
	{if $rs}
	{foreach from=$rs key=k item=r}
	<tr class="{if $k%2==0}even{else}odd{/if}">
		<td align="center"><input type="checkbox" name="chkItem"
			value="{$r->cat_id}" id="chkItem" /></td>
		<td><a href="javascript:form_item(url_edit+'{$r->cat_id}',470,200)"
			title="Sửa bài {$r->title}">{$r->title}</a></td>
		<td align="center">{$r->create_datetime}</td>
		<td align="center"><a
			href="javascript:change_status_item_grid({if $r->status eq 1}0{else}1{/if},{$r->cat_id},'grid',url_chan+'{$arr_page.current}')"
			title="Ẩn / Hiện"><img
			src="{$base_url}images/icon/{if $r->status eq 1}icon_16_16_enable{else}icon_16_16_disable{/if}.png" /></a></td>
		<td align="center"><a
			href="javascript:delete_item_grid({$r->cat_id},'grid',url_del+'{$arr_page.current}')"
			title="Xóa"><img src="{$base_url}images/icon/icon_16_16_delete.png" /></a></td>
		<td align="center">{$r->cat_id}</td>
	</tr>
	{/foreach}
	{/if}
</table>
{include file="admin/pagination.tpl" arr_page=$arr_page}
